package com.pureut.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/***
 * 委外订单上传合同 入参
 * Author:C
 * Date:2022/12/02 14:00
 * @DESC
 */
@Data
public class SubcontractingOrderUploadContractVo {

    /**
     * id
     */
    private long id;

    /**
     * 加工商id
     */
    @NotNull(message = "加工商不能为空")
    private long converterId;

    /**
     * 委外合同编号
     */
    @NotBlank(message = "委外合同编号不能为空")
    private String subcontractingContractNum;

    /**
     * 合同url
     */
    @NotBlank(message = "合同不能为空")
    private String contractUrl;

    /**
     * 预计到货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arrivalTime;

    /**
     * 质量标准
     */
    private String qualityStandard;

    /**
     * 总费用
     */
    private String totalExpenses;
}
